<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<form id="form1" action="https://www.sogou.com/web?" >
    <input type="text" name="query" >
    <input type="button" onclick="submit_form();" value="提交">
</form>
<script type="text/javascript">
    function submit_form(){
        document.getElementById('form1').submit()
    }
</script>
</body>
</html>